package com.nick.factory.function;

import com.nick.factory.Apple;
import com.nick.factory.Fruit;

/**
 * Created by xiaobao on 2017/7/13.
 */
public class AppleFactory implements FruitFactory {
    public Fruit createFruit() {
        System.out.println("Creating apple from expert apple factory.");
        return new Apple();
    }
}
